# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
#计算1-100的偶数和
a=1
sum=0
while a<10:
    if a%2==0:              #if a%2==0:     #if  a%2:  fasle不执行
        sum+=a              #   sum+=a
        a+=1                #a+=1
        print(sum)
    else:
        a+=1
print('1---10的所有偶数和为',sum)



